* {
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: #333;
}
a:hover,
a:visited,
a:link,
a:active {
  color: #000;
}
.chatbox {
  width: 600px;
  margin: 30px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 24px 0px #c5d0e6;
}
.chatbox header {
  padding: 10px 0;
  text-align: center;
  background-color: #e3e6e5;
}
.chatbox header a {
  font-size: 20px;
  color: #000;
  letter-spacing: 3px;
  cursor: pointer;
  font-weight: 600;
}
.chatbox .content {
  height: 700px;
  background-color: #fff;
  padding: 15px 15px 5px;
  background: url('../imgs/lxq.jpg') no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.chatbox .content .chatBox div {
  overflow: hidden;
  margin-bottom: 10px;
}
.chatbox .content .chatBox div p {
  position: relative;
  padding: 10px;
  max-width: 75%;
  font-size: 14px;
  line-height: 16px;
  border-radius: 5px;
  letter-spacing: 1px;
}
.chatbox .content .chatBox div img {
  width: 40px;
  height: 40px;
  float: right;
  border-radius: 5px;
}
.chatbox .content .chatBox div.me p {
  background-color: #77f777;
  float: right;
}
.chatbox .content .chatBox div.me img {
  float: right;
  margin-left: 15px;
}
.chatbox .content .chatBox div.me p::after {
  content: '';
  right: -11px;
  top: 11px;
  border-left: 6px solid #77f777;
  border-right: 6px solid transparent;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  position: absolute;
}
.chatbox .content .chatBox div.opposite p {
  float: left;
  background-color: #fff;
}
.chatbox .content .chatBox div.opposite img {
  float: left;
  margin-right: 15px;
}
.chatbox .content .chatBox div.opposite p::after {
  content: '';
  left: -11px;
  top: 11px;
  border-left: 6px solid transparent;
  border-right: 6px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  position: absolute;
}
.chatbox .content::-webkit-scrollbar {
  width: 2px;
}
.chatbox::-webkit-scrollbar-thumb {
  background-color: #d8dee9;
  border-radius: 2px;
}
.chatbox .sendMessage {
  border: 1px #bbcdda solid;
  background-color: #e3e6e5;
  height: 90px;
  padding: 5px;
  text-align: right;
}
.chatbox .sendMessage textarea {
  width: calc(100% - 20px);
  height: calc(70% - 20px);
  resize: none;
  border: 0;
  font-size: 12px;
  padding: 10px;
}
.chatbox .sendMessage textarea:active,
.chatbox .sendMessage textarea:focus {
  outline: none;
}
.chatbox .sendMessage textarea::-webkit-scrollbar {
  width: 1px;
}
.chatbox .sendMessage span {
  margin-top: 5px;
  font-size: 14px;
  padding: 3px 12px;
  background-color: #d7dbdb;
  border-radius: 4px;
  cursor: pointer;
}
